<div class="order-list-page" ng-if="pagedata.op == 'main' || pagedata.op == 'getlist'">
	<div class="jy2-headertopbg">
			<div class="fui-header" style="background:none">
				<div class="fui-header-left">
					<a class="back" style="color:#fff" href="javascript:" ng-click="goback()"></a>
				</div>
				<div class="title bold" style="font-size:1rem;color:#fff">我的订单</div>
				<div class="fui-header-right" style="padding-right:0.5rem;color:#fff" ng-click="pagedata.status=5;tool.get_list('jy_aligroup/order/getlist/status=5',true)">
					<a class="icon icon-delete" style="color:#ddd">其他订单</a>
				</div>
			</div>
	 </div>
	<div ng-show="pagedata.status == 5" id="tab" class="fui-tab fui-tab-danger jy2-headertop" style="top:4.2rem">
        <a href="javascript:" ng-click="tool.get_list('jy_aligroup/order/getlist/status=100',true);pagedata.status=100" class="external">其他订单</a>
        <a class='external active' ng-click="tool.get_list('jy_aligroup/order/getlist/status=5',true);pagedata.status=5">拼团失败</a>
    </div>

    <div ng-show="pagedata.status != 5" id="tab" class="fui-tab fui-tab-danger jy2-headertop" style="top:4.2rem">
		 <a ng-class="{'external active':pagedata.status == 100}" href="javascript:" ng-click="tool.get_list('jy_aligroup/order/getlist/status=100',true);pagedata.status=100">全部</a>
        <a ng-class="{'external active':pagedata.status == 0}" href="javascript:" ng-click="tool.get_list('jy_aligroup/order/getlist/status=0',true);pagedata.status=0">待付款</a>
		<a ng-class="{'external active':pagedata.status == 1}" href="javascript:" ng-click="tool.get_list('jy_aligroup/order/getlist/status=1',true);pagedata.status=1">拼团中</a>
        <a ng-class="{'external active':pagedata.status == 2}" href="javascript:" ng-click="tool.get_list('jy_aligroup/order/getlist/status=2',true);pagedata.status=2">待发货</a>
        <a ng-class="{'external active':pagedata.status == 3}" href="javascript:" ng-click="tool.get_list('jy_aligroup/order/getlist/status=3',true);pagedata.status=3">待收货</a>
        <a ng-class="{'external active':pagedata.status == 4}" href="javascript:" ng-click="tool.get_list('jy_aligroup/order/getlist/status=4',true);pagedata.status=4">已完成</a>
 
    </div>
	<div class='fui-content order-list' style="top:0;margin-top:12px">
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 订单号: {{item.orderno}}</div>
                    </div>
                    <div class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">{{item.statustitle}}</div>
                    <div class="angle"></div>
                </a> 
                    <!--<a href="" data-nocache="true">
                        <div class="fui-list-group-title lineblock">
                            <i class="icon jinyunicon icon-dianpu"></i> {{item.store.title}}
                            <span class="status noremark" style="font-size:0.50rem"><span style="color:#f60;"></span></span>
                        </div>
                    </a>-->
                    <a href="" class="external" data-nocache="true" ng-click="access_json('jy_aligroup/orderdetail//id='+item.id)">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(item.goods.image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">{{item.goods.title}}</div>
								<div class="subtitle"> {{item.goods.subtitle}}</div>
								<div class="text" style="color:#f60;font-size:0.50rem">拼团地：{{item.address || '无'}}</div>
                            </div>
                            <div class="fui-list-angle" style="width:4rem">
                                ￥<span class="marketprice">{{item.goods.price}}</span></div>
                        </div>
                    </a>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span class="status noremark">共 <span>1</span> 个订单 实付: <span class="text-danger">￥{{item.price}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 0" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'delete','id='+item.id)">删除订单</div>
					<div ng-show="item.status == 0" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="pay_submit({},'jy_aligroup/order/pay/id='+item.id,'jy_aligroup/order/','jy_aligroup/order/')">支付订单</div>
					<div ng-show="item.status == 3" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'receive','id='+item.id)">确认订单</div>
					<div ng-show="item.status == 5" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="access_json('jy_aligroup/cash_log//')">查看退款</div>
					<div ng-show="item.teamid>0" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="access_json('jy_aligroup/teamdetail//id='+item.teamid)">查看团</div>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有订单！</p>
	</div>
</div>

<div ng-include="sys_html('_footer')"></div>
